package com.example.sps.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @ProjectName: Sps
 * @Titile: EmpLoginDTO
 * @Author: nency
 * @Description: TODO
 */
@Data
public class EmpLoginDTO implements Serializable {
    @Length(max = 11,min = 11,message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9][0-9]{9}",message = "手机号格式错误")
    private String Phone;
    @Length(max = 12,min = 6,message = "密码只能{min}到{max}")
    @NotBlank(message = "密码不能为空")
    private String password;
}
